//
//  DECXGlobal.m
//  DECXInStore
//
//  Created by 程强 on 15/12/14.
//  Copyright © 2015年 程强. All rights reserved.
//

#import "DECXGlobal.h"

static DECXGlobal *global = nil;

@implementation DECXGlobal
+ (instancetype)shareInstance
{
    static dispatch_once_t onceToken;
    dispatch_once(&onceToken, ^{
        global = [[DECXGlobal alloc] init];
    });
    return global;
}
- (instancetype)init
{
    if (self = [super init]) {
        _user = [[DECXUser alloc] init];
    }
    return self;
}
@end
